//
//  MainTableViewCell.m
//  易车
//
//  Created by dllo on 15/11/10.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "MainTableViewCell.h"

@implementation MainTableViewCell

- (void)dealloc
{
    [_picView release];
    [_titleLabel release];
    [_nameLabel release];
    [_numberLabel release];
    [super dealloc];
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createView];
    }
    return self;
}

- (void)createView{
    self.picView = [[UIImageView alloc] init];
    [self addSubview:self.picView];
    [self.picView release];
    
    self.titleLabel = [[UILabel alloc] init];
    self.titleLabel.font = [UIFont systemFontOfSize:14];
    self.titleLabel.numberOfLines = 0;
    [self addSubview:self.titleLabel];
    [self.titleLabel release];
    
}

- (void)layoutSubviews{
    
    self.picView.frame = CGRectMake(3, 10, 100, self.frame.size.height - 20);
    
    self.titleLabel.frame = CGRectMake(113, 6, self.frame.size.width - 133, self.frame.size.height / 2);
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
